//
//  UINavigationBar+Common.m
//  Tools
//
//  Created by han on 2019/2/14.
//  Copyright © 2019 han. All rights reserved.
//

#import "UINavigationBar+Common.h"

@implementation UINavigationBar (Common)

- (void)hiderBottomLine {
    [self hideBorderInView:self];
}
- (BOOL)hideBorderInView:(UIView *)view{
    if ([view isKindOfClass:[UIImageView class]]
        && view.frame.size.height <= 1) {
        view.hidden = YES;
        return YES;
    }
    for (UIView *subView in view.subviews) {
        if ([self hideBorderInView:subView]) {
            return YES;
        }
    }
    return NO;
}
@end
